package com.jshoperxms.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the product_t database table.
 * 
 */
@Entity
@Table(name="product_t")
@NamedQuery(name="ProductT.findAll", query="SELECT p FROM ProductT p")
public class ProductT implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String productid;

	private BigDecimal cost;

	@Temporal(TemporalType.TIMESTAMP)
	private Date createtime;

	private String creatorid;

	private int freezestock;

	private String goodsid;

	private String isdefault;

	private BigDecimal memberprice;

	private String pattrs;

	private String pparams;

	private BigDecimal price;

	private String productname;

	private String psku;

	private String psn;

	private BigDecimal saleprice;

	private String salestatus;

	private String shopid;

	private int stock;

	private String unit;

	@Temporal(TemporalType.TIMESTAMP)
	private Date updatetime;

	private String weight;

	public ProductT() {
	}

	public String getProductid() {
		return this.productid;
	}

	public void setProductid(String productid) {
		this.productid = productid;
	}

	public BigDecimal getCost() {
		return this.cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getCreatorid() {
		return this.creatorid;
	}

	public void setCreatorid(String creatorid) {
		this.creatorid = creatorid;
	}

	public int getFreezestock() {
		return this.freezestock;
	}

	public void setFreezestock(int freezestock) {
		this.freezestock = freezestock;
	}

	public String getGoodsid() {
		return this.goodsid;
	}

	public void setGoodsid(String goodsid) {
		this.goodsid = goodsid;
	}

	public String getIsdefault() {
		return this.isdefault;
	}

	public void setIsdefault(String isdefault) {
		this.isdefault = isdefault;
	}

	public BigDecimal getMemberprice() {
		return this.memberprice;
	}

	public void setMemberprice(BigDecimal memberprice) {
		this.memberprice = memberprice;
	}

	public String getPattrs() {
		return this.pattrs;
	}

	public void setPattrs(String pattrs) {
		this.pattrs = pattrs;
	}

	public String getPparams() {
		return this.pparams;
	}

	public void setPparams(String pparams) {
		this.pparams = pparams;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getProductname() {
		return this.productname;
	}

	public void setProductname(String productname) {
		this.productname = productname;
	}

	public String getPsku() {
		return this.psku;
	}

	public void setPsku(String psku) {
		this.psku = psku;
	}

	public String getPsn() {
		return this.psn;
	}

	public void setPsn(String psn) {
		this.psn = psn;
	}

	public BigDecimal getSaleprice() {
		return this.saleprice;
	}

	public void setSaleprice(BigDecimal saleprice) {
		this.saleprice = saleprice;
	}

	public String getSalestatus() {
		return this.salestatus;
	}

	public void setSalestatus(String salestatus) {
		this.salestatus = salestatus;
	}

	public String getShopid() {
		return this.shopid;
	}

	public void setShopid(String shopid) {
		this.shopid = shopid;
	}

	public int getStock() {
		return this.stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}

	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Date getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getWeight() {
		return this.weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

}